#ifndef __TAB_LOGGING_H__
#define __TAB_LOGGING_H__ 1

#include <QObject>
#include <QWidget>
#include <QVBoxLayout>
#include <QSplitter>
#include <QPlainTextEdit>

#include "ui_constants.h"

class CTabLogging : public QWidget
{
	Q_OBJECT

public:

	CTabLogging(QWidget* pParent = 0);
	virtual ~CTabLogging();

	void infoReceived(ELogLevel& pLogLevel, QString& pInfoMsg);

	void startRequested();

private:
	CTabLogging(const CTabLogging& );
	CTabLogging& operator=(const CTabLogging& );

	void setupUiElements();
	void setupActions();

	QVBoxLayout mLayout;
	QSplitter mIOSplitter;
	QPlainTextEdit* mCltConsole;
	QPlainTextEdit* mSrvConsole;
};

#endif /* __TAB_LOGGING_H__ */


